/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.designPatterns.creational.prototype;

/**
 *
 * @author user
 */
public class Run {
    public static void main(String[] args) {
        Person person = new Person("fred");
        System.out.println(""+person);
        Person person1 =(Person) person.doClone();
        System.out.println(""+person1);
        
        Dog odg1 = new Dog("woof");
        System.out.println("name: "+odg1);
        Dog dog2 = (Dog) odg1.doClone();
        System.out.println("name: "+dog2);
    }
}
